package com.ruoyi.taskSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.baseSys.domain.Building;
import com.ruoyi.baseSys.domain.Residential;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋核酸任务对象 m_building_task
 * 
 * @author ruoyi
 * @date 2024-07-28
 */
public class MBuildingTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 小区名 */
    @Excel(name = "小区名")
    private Long residential;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private Long buildding;

    /** 任务名 */
    @Excel(name = "任务名")
    private String task;

    /** 状态 0未开始 1进行中 2已完成 */
    @Excel(name = "状态 0未开始 1进行中 2已完成")
    private Long taskStatus;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String detectingLocation;

    /** 任务人数 */
    @Excel(name = "任务人数")
    private Long taskNum;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private String taskFinish;

    //小区
    private Residential residentials;
    //楼栋
    private Building buildings;

    public Residential getResidentials() {
        return residentials;
    }

    public void setResidentials(Residential residentials) {
        this.residentials = residentials;
    }

    public Building getBuilding() {
        return buildings;
    }

    public void setBuilding(Building buildings) {
        this.buildings = buildings;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setResidential(Long residential) 
    {
        this.residential = residential;
    }

    public Long getResidential() 
    {
        return residential;
    }
    public void setBuildding(Long buildding) 
    {
        this.buildding = buildding;
    }

    public Long getBuildding() 
    {
        return buildding;
    }
    public void setTask(String task) 
    {
        this.task = task;
    }

    public String getTask() 
    {
        return task;
    }
    public void setTaskStatus(Long taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public Long getTaskStatus() 
    {
        return taskStatus;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDetectingLocation(String detectingLocation) 
    {
        this.detectingLocation = detectingLocation;
    }

    public String getDetectingLocation() 
    {
        return detectingLocation;
    }
    public void setTaskNum(Long taskNum) 
    {
        this.taskNum = taskNum;
    }

    public Long getTaskNum() 
    {
        return taskNum;
    }
    public void setTaskFinish(String taskFinish) 
    {
        this.taskFinish = taskFinish;
    }

    public String getTaskFinish() 
    {
        return taskFinish;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("residential", getResidential())
            .append("buildding", getBuildding())
            .append("task", getTask())
            .append("taskStatus", getTaskStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("detectingLocation", getDetectingLocation())
            .append("taskNum", getTaskNum())
            .append("taskFinish", getTaskFinish())
            .toString();
    }
}
